import request from "@/utils/request";

export function list(params){
    return request({
        url:'/doctor/selectAll',
        method:'get',
        params:params
    })
}


export function save(data){
    return request({
        url:'/doctor/save',
        method:'POST',
        data:data
    })
}


export function edit(data){
    return request({
        url:'/doctor/edit',
        method:'POST',
        data:data
    })
}


export function delDoctor(id){
    return request({
        url:'/doctor/delete/'+id,
        method:'DELETE',
    })
}



export function deleteBatch(data){
    return request({
        url:'/doctor/deleteBatch',
        method:'POST',
        data:data
    })
}


export  function findAllDoctorNames(){
    return request({
        url:'/doctor/findAllDoctorNames',
        method:'GET'
    })
}


export  function selectDoctorSchedulerInfo(params){
    return request({
        url:'/doctor/selectDoctorSchedulerInfo',
        method:'GET',
        params:params
    })
}